<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>CSS精灵案列</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      block-size: border-box;
    }

    li {
      list-style: none;
    }

    .service {
      margin: 100px auto;
      width: 1190px;
      height: 42px;
    }

    .service ul {
      display: flex;
    }

    .service li {
      display: flex;
      padding-left: 40px;
      width: 297px;
      height: 42px;
    }

    .service li h5 {
      margin-right: 10px;
      width: 36px;
      height: 42px;
      background: url(./images/sprite.png)0 -192px;
    }
    .service li:nth-child(2) h5 {
     background-position:-41px -192px ; 
    }
    .service li:nth-child(3) h5 {
     background-position:-82px -192px ; 
    }
    .service li:nth-child(4) h5 {
     background-position: -123px  -192px ; 
    }
    .service li p{
      font-size: 18px;
      color: #444;
      font-weight: 700;
      margin-top: 10px;
    }
  </style>
</head>

<body>
  <div class="service">
    <ul>
      <li>
        <h5></h5>
        <p>品类齐全,轻松购物</p>
      </li>
      <li>
        <h5></h5>
        <p>品类齐全,轻松购物</p>
      </li>
       <li>
        <h5></h5>
        <p>品类齐全,轻松购物</p>
      </li>
       <li>
        <h5></h5>
        <p>品类齐全,轻松购物</p>
      </li>
    </ul>
  </div>
</body>

</html>